import request from '../lib/request.js'

//获取分类列表
export function getCategoryIndex(){
	return request({url:'/api/admin/category/index',method:'get'});
}

//添加分类
export function create(data){
	return request({url:'/api/admin/category/create',method:'post',data:data});
}
export function update(data){
	return request({url:'/api/admin/category/update',method:'post',data:data});
}
//分类列表